package com.kaili.except;

import com.kaili.common.exception.IResponseStatus;

public enum ResponseStatus implements IResponseStatus {
    RESPONSE_OK(200,"operation.success"),
    RESPONSE_DATA_EMPTY(500,"operation.data.is.empty"),
    RESPONSE_LIST_EMPTY(501,"operation.list.data.is.empty"),
    RESPONSE_PRINT_ERROR(502,"operation.print.exception"),
    RESPONSE_TYPE_EMPTY(503,"operation.pring.data.is.empty"),
    SIGN_ADD_ERR(504, "operation.new.signing.error"),
    SIGN_SEARCH_ERR(505, "operation.signing.serch.error"),
    DATA_STRUCT_ERR(506, "operation.data.error"),
    TRANS_SEND_ERR(507, "operation.delivery.error"),
    TRANS_ARRIVE_ERR(508, "operation.transit.error"),
    TRANS_SEND_ADD_ERR(509, "operation.new.shio.error"),
    TRANS_ARRIVE_ADD_ERR(510, "operation.new.tran.error"),
    TRANS_CHECK_ERR(510, "operation.transfer.error"),
    REWB_QUERY_ERR(511, "operation.receipt.query.failed"),
    REWB_IS_SIGN(531, "operation.issign.error"),
    REWB_ACCEPTANCE_RETURN(532, "operation.acceptance.return"),
    REWB_SEND_ERR(512, "operation.inert.error"),
    REWB_CHECK_ERR(513, "operation.inert.error"),
    REWB_RETURN_ERR(514, "operation.inert.error"),
    REWB_EXPORT_ERR(515, "operation.export.error"),
    SIGN_ADD_DUPLICATE(516, "operation.data.dupilcation"),
    TRANS_ADD_DUPLICATE(517, "operation.data.dupilcation"),
    REWB_SEND_ALREADY_ERR(518, "operation.return.has"),
    REWB_CHECK_ALREADY_ERR(519, "operation.been.processed"),
    REWB_RETURN_ALREADY_ERR(520, "operation.receipt.returned"),
    TRANS_CHECK_CONFIRM_ERR(512, "operation.processing.confirmaton"),
    TRANS_CHECK_DUPLICATE(517, "operation.repeat.confirmation"),
    SUB_EWB_GEN_LEN_ERR(518, "operation.sub.single"),
    SUB_EWB_GEN_SIZE_ERR(519, "operation.rule.of.sub"),
    SUB_EWB_GEN_NULL_ERR(520, "operation.sub.mono.rule"),
    ALREADY_SIGNED_ERR(521, "operation.ewb.sing"),
    CLASS_ERROR(201, "operation.export.not.class"),
    EMPTY_ERROR(202, "operation.export.data.is.empty"),
    FILE_ERROR(203, "operation.upload.file.exception"),
    ANALYSE_ERROR(204, "operation.upload.file.exception.check"),
    OUT_ERROR(205, "operation.server.output.exception"),
    FILE_NOT_EXIST(206, "operation.file.not,exist"),
    ADD_FAIL(400,"operation.new.error"),
    RESPONSE_CHECK_ERROR(520,"operation.repeat"),
    DATA_DUPLICATE(521, "operation.data.exception"),
    NOT_ENOUGH_STOCK(522, "operation.not.stock"),
    SYSTEM_EXCPTION_ERR(523, "operation.system.exception"),
    STOCK_REQUST_SIZE_ERR(524, "operation.stock.data"),
    SIGN_STOCK_NOT_ENOUGH_ERR(525, "operation.sing.not"),
    TRANS_STOCK_NOT_ENOUGH_ERR(526, "operation.shortage.of.stock"),
    SUB_EWB_NOT_EXIST(527, "operation.sub.not.exist"),

    APPOINT_ADD_ERR(601, "operation.new.regis.error"),
    APPOINT_DELETE_ERR(602, "operation.delete.error"),
    APPOINT_MODIFY_ERR(603, "operation.update.error"),
    APPOINT_QUERY_ERR(604, "operation.serch.error"),
    DELIVERY_UNHANDLE_QUERY_ERR(605,"operation.query.error"),
    DELIVERY_ADD_ERR(606,"operation.new.car.error"),
    DELIVERY_EDIT_SAVE_ERR(607,"operation.car.update.error"),
    DELIVERY_FINISH_ERR(608,"operation.receiving.complete.error"),
    EWB_ADD_ERR(609,"operation.order.failed"),
    EWB_QUERY_ERR(610,"operation.order.search.failed"),
    STOWAGE_ADD_ERR(611, "operation.add.stowage.error"),
    STOWAGE_ADD_DUPLICATE(612, "operation.stowage.error.existed"),
    STOWAGE_QUERY_ERR(613, "operation.stowage.search.failed"),
    STOWAGE_CONFIRM_ERR(614, "operation.confirm.departure.failed"),
    STOWAGE_EDIT_SAVE_ERR(615, "operation.modify.stowage.error"),
    STOWAGE_DEL_ERR(616, "operation.delete.stowage.error"),
    DELIVERY_DEL_ERR(617, "operation.delete.receiving.error"),
    UNBILLING_APPOINT_QUERY_ERR(618,"operation.search.unused.reservation.registration.failed"),
    ORDER_ADD_ERR(619,"operation.add.order.failed"),
    ORDER_QUERY_ERR(620,"operation.search.order.failed"),
    EWB_ADD_DUPLICATE(621, "operation.order.used"),
    DAILY_DELIVERY_REPORT_QUERY_ERR(622,"operation.search.daily.delivery.report.failed"),
    DATA_NOT_EXIST(623,"operation.data.no.exist"),
    BUSINESS_OPERATION_ANALYSIS(624,"operation.search.business.management.analysis.failed"),
    USE_WEIGHT(655,"operation.usage.upper.limit"),
    COUMPANYID_NULL(656,"operation.company.empty"),


    ARRIVE_ADD_ERR(521,"operation.exception.abnormal"),
    ARRIVE_CONFIRM_REPEAT(522,"operation.completed.arrival.operation"),
    ARRIVE_CANCEL_REPEAT(523,"operation.cancel.arrival.operation"),
    DELETE_ERR(700,"operation.delete.failed"),
    MODIFIED_ABNORMAL_ERR(701,"operation.abnormal.piece.modify.error"),
    NOTICE_QUERY_ERR(702,"operation.notice.arrival.error"),
    NOTICE_PHONE_ERR(710,"operation.telephone.notice.arrival.error"),
    DISPATCH_QUERY_ERR(703,"operation.arrival.delivery.search.error"),
    IS_SIGN(717,"operation.delivery.signed.edit"),
    IS_DELETE(718,"operation.delivery.signed.delete"),
    DISPATCH_DELETE_ERR(704,"operation.delivery.delete.error"),
    DISPATCH_UPDATE_ERR(705,"operation.delivery.modify.error"),
    EXCEPTION_ADD_ERR(706,"operation.delivery.add.failed"),
    EXCEPTION_ADD_NONE(707,"operation.order.no.exists"),
    EXCEPTION_OBTAIN_ERR(708,"operation.abnormal.modify.obtain.error"),
    ARRIVE_CANCEL_EWB(709,"operation.order.cancel.error"),
    DISPATCH_ADD_ERR(710,"operation.delivery.add.error"),
    DISPATCH_STOCK_NOT_ENOUGH_ERR(711, "operation.delivery.inventory.shortage"),
    STOWAGE_NOT_EWB_NO(712,"operation.stowage.not.exist.order"),
    DISPATCH_STATUS_ALL(713,"operation.delivery.signed"),
    PRINT_NULL(714,"operation.print.select"),
    EXCEPTION_EWB_NONE(715,"operation.order.no.exist"),
    TOTAL_AMOUNT_IS_GREATER(715, "operation.total.larger"),
    EWB_ISEMPTY(715, "operation.ewbNo.empty"),
    EWB_EMPTY(716,"operation.order.select"),
    EWB_NOT_EXISTS(717,"operation.order.expired"),
    EWB_NOT_DELETE(718,"operation.stowage.not.delete"),
    EWB_NOT_UPDATE(719,"operation.stowage.not.modify"),
    STOWAGE_ARRIVED(720,"operation.stowage.arrival")
    ;
    int code;
    String msg;


    ResponseStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
